#ifndef KZFQGRAPHICSRECTITEM_H
#define KZFQGRAPHICSRECTITEM_H

#include <QGraphicsRectItem>
#include <QGraphicsItem>

class kzfQGraphicsRectItem : public QGraphicsRectItem
{

public:
    explicit kzfQGraphicsRectItem(QGraphicsRectItem *parent = nullptr);
    explicit kzfQGraphicsRectItem(const QRectF &rect, QGraphicsItem *parent = nullptr);
    explicit kzfQGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem *parent = nullptr);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;

};

#endif // KZFQGRAPHICSRECTITEM_H
